#include "highgui.h"
int main( int argc, char **argv ) 
{
    const char *win_name = "example1"; 
    IplImage *img = cvLoadImage(argv[1], CV_LOAD_IMAGE_COLOR);
    cvNamedWindow(win_name, CV_WINDOW_AUTOSIZE);
    cvShowImage(win_name, img);
    cvWaitKey(0); 
    cvReleaseImage(&img);
    cvDestroyWindow(win_name);
}
